package com.sdy.util;

import com.google.common.collect.ImmutableMap;

import java.util.Map;

public class Contact {

    //session中的，登录用户
    public static String LOGIN_KEY = "loginUser";
    //session中的，公司信息
    public static String COMPANY_KET = "contactCompany";
    //session中的，是否是管理员
    public static String IS_MANAGER = "isManager";

    //推送模块，拼接推送标题
    public static String NOTIC_TITLE_HEAD1 = "检测到";
    public static String NOTIC_TITLE_HEAD2 = "状态变更：";

    //推送模块，拼接推送报告
    public static String NOTIC_INFO_ABNOEMAL_PARM = "异常参数： ";
    public static String NOTIC_INFO_STATE_BEDORE = " ,运行状态从 ";
    public static String NOTIC_INFO_STATE_DOWN = " 下降为 ";
    public static String NOTIC_INFO_STATE_UP = " 上升为 ";
    public static String NOTIC_INFO_FOOTER = " ，请立即处理！";

    //推送模块，推送阅读状态
    public static String NOTIC_READSTATE_READ = "已读";
    public static String NOTIC_READSTATE_UNREAD = "未读";

    //三种等级
    public static String STATE_NORMAL = "normal";
    public static String STATE_WARNING = "warning";
    public static String STATE_ERROR = "error";

    public static  String AUTHERITY_All = "all";
    public static  String AUTHERITY_MANAGER = "manager";
    public static  String AUTHERITY_CUSTOMER = "customer";

    //用来映射设备运行状态的Map
    public static Map<String,Integer> STATE_TO_INT = ImmutableMap.of(STATE_NORMAL, 1, STATE_WARNING, 2,STATE_ERROR,3);
    public static Map<String,String> STATE_TO_CN = ImmutableMap.of(STATE_NORMAL, "普通", STATE_WARNING, "警告",STATE_ERROR,"危急");


}
